package cug.xxs.jpa.service;

import java.util.Optional;

/**
 * \* Created with IntelliJ IDEA.
 * \* @author: 彭诗杰
 * \* @date: 2019/7/27
 * \* @time: 16:14
 * \* Description:
 * \
 */
public interface IAction<T, VO, ID> {

    T create(VO vo);

    Optional<T> findById(ID id);

    void deleteById(ID id) throws EmptyResultException;

    void update(VO t);
}
